home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18558 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: inforamp.net!usenet
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Dynamicly changing array size??
  5. Date: Sun, 21 Apr 1996 17:59:51 GMT
  6. Organization: InfoRamp Inc., Toronto, Ontario (416) 363-9100
  7. Message-ID: <4ldiie$pas@sam.inforamp.net>
  8. References: <4l9mht$9h5@cello.cs.uq.edu.au>
  9. NNTP-Posting-Host: ts23-13.tor.istar.ca
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. s324570@cs.uq.edu.au (andrew janke) wrote:
  13.  
  14. >A question to you gurus out there...
  15. >We are trying to implement an array of pointers that changes in size during run time.
  16. >ie its array size is not only changed at runtime but is also changed frequently during runtime.  
  17. >We are using c++ and am interested as whether this sort of thing can be done.
  18. >Its either that or we will have to sue some sort of a blocked array structure.
  19.  
  20. You can do this using the STL and most early implementations of
  21. template containers.  Using the STL their's a few classes, one named
  22. vector that does just that.  Using MFC the CArray class can be used.
  23. In OWL, you can use TVectorAsArray.
  24.  
  25.  
  26. Agrivar
  27.  
  28. aka Randy Charles Morin,
  29. MiddleWorld SoftWare,
  30. Satisfying Your Bit and Bytes,
  31. Canada 1-800-363-3780 
  32. Other  1-905-279-2087
  33. eMail  rmorin@inforamp.net
  34.  
  35.